﻿@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

@using (Html.BeginForm("PageModel", "Other"))
{
    <span>n:</span>
    @Html.TextBox("n")
    <br />
    <span>msg:</span>
    @Html.TextBox("msg")
    <br />
    <input type="submit" value="OK" />
}



<a href="/Home/MyPage">Go to My Page</a>
<br />
@Html.ActionLink("Go to My Page", "MyPage", "Home")
<br />
@Html.ActionLink("PageParam(1)", "PageParam", "Home", new { n = 1 }, null)
<br />
@Html.ActionLink("Other's Index", "Index", "Other")
<br />
@Html.ActionLink("O's PageParam", "PageParam", "Other", new { n = 7, msg = "Aloha" }, null)
<br />
@Html.ActionLink("Other's DefaultParam", "DefaultParam", "Other", new { id = 8 }, null)
<br />
@Html.ActionLink("Create Model", "CreateModel", "Other")